<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>QUnit Test Protal</title>
  <link rel="stylesheet" href="node_webkit/css/qunit.css">
</head>
<body>
  <script>
    var gowebsite=function(site) {
      if (typeof process !='undefined' &&process.versions['node-webkit']) {
        var gui=require('nw.gui');
        if (gui) gui.Shell.openExternal(site);
      }
      else window.open(site,'_blank');
    };
  </script>
  <a style="font-size:150%" href="javascript:gowebsite('http://127.0.0.1:9223')">OPEN DEBUGGING WINDOW</a>
  <div id="qunit"></div>
  <div id="qunit-fixture"></div>
  <script src="node_webkit/jslib/qunit.js"></script>
  <script type="text/javascript">
    if (location.hash.length) {
		var fileref=document.createElement('script');
		var filename=location.hash.substring(1);
  		fileref.setAttribute("type","text/javascript")
  	    fileref.setAttribute("src", filename)
  	    document.getElementsByTagName("head")[0].appendChild(fileref);
  	    filename=filename.replace(/\\/g,'/');
  	    var path=filename.substring(0,filename.lastIndexOf('/'));
  	    if (path) process.chdir(path);//for node context
    } else {
    	document.write('missing test filename')
    }
  
  </script>
</body>
</html>